package com.yisu.expressway.onedollar.view;

import com.yisu.expressway.onedollar.model.GoodsItem;
import com.yisu.expressway.onedollar.model.OrderObj;

/**
 * Created by Kaven on 2016/12/7.
 */

public interface IOneDollarMainView {
	/**
     * show toast
     * @param toastMsg
     */
    void showToast(String toastMsg);
	/**
     * show loading dialog
     */
    void showLoadingDlg();

	/**
     * dismiss loading dialog
     */
    void dismissLoadingDlg();

    /**
     * show pop dialog
     */
    void showPopDlg(GoodsItem goodsItem);

    /**
     * dismiss pop dialog
     */
    void dismissPopDlg();

    /**
     * jump to recent_announcement list page
     */
    void jump2RecentAnnouncementPage();

    /**
     * jump to announced commodity's purchase page
     */

    void jump2GoodsPurchasePage(long goodsNo);
    /**
     * jump to pay page
     */

    void jump2PayPage(String goodsName, double cost, OrderObj  orderObj, long periodsNum,long joinNum,long goodsNo);

	/**
     * refresh commodity list;
     */
    void refreshCommodityList(boolean bSuc, String msg);

	/**
	 * refresh views
	 */
	void refreshViews(boolean bSuc);

	/**
	 * jump to login page
	 */

	void jump2LoginPage();

}
